package cn.palerock.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Eoly on 2017/10/19.
 */
@Controller
@RequestMapping("/")
public class TestController {

    @RequestMapping("test")
    public String test() {
        return "index";
    }

    @ResponseBody
    @RequestMapping("aaa")
    public String aaa() {
        return "ni shi ge dasb";
    }


}
